package main

import (
	"basic-go/src/arrays"
	"fmt"
)

func main() {

	var values []int = []int{1, 4, 6, 10, 15, 18, 21}
	index := arrays.BinarySearch(values, 16)
	fmt.Println(index)

	// 使用递归函数
	index = arrays.BinarySearch2(values, 16)
	fmt.Println(index)
}
